<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <style>
        #container{
            width: 1000px;
            margin: 20px auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }
        .item{
            padding-bottom:20px ;
        }
        .item>img{
            width: 150px;
            height: 150px;
        }
        .item>div{
            width: 150px;
        }
    </style>
</head>
<body>
    <div id="container">
        <div class="item" v-for="(item,index) of play">
            <img :src="item.coverImgUrl" alt="">
            <div>{{item.name}}</div>
        </div>
    </div>
    <script>
        new Vue({
            el:"#container",
            data:{
                play:[]
            },
            mounted() {
                var url = `http://47.108.197.28:3000/top/playlist`;
                $.ajax({
                    url,
                    success:res=>{
                        console.log(res.playlists);
                        this.play = res.playlists;
                    }
                })
            },
        })
    </script>
</body>
</html>